<?php if(!class_exists('raintpl')){exit;}?><div class="row row_insert">
    <div class="row col-sm-4">
        <?php if( $row_list ){ ?>
        <?php $counter1=-1; if( isset($row_list) && is_array($row_list) && sizeof($row_list) ) foreach( $row_list as $key1 => $value1 ){ $counter1++; ?>
        <div class="row col-sm-12 row_insert_item">
            <div class="col-xs-8"><input type="text" class="form-control" name="<?php echo $value1["input_name"];?>" value="<?php echo $value1["input_value"];?>"/></div>
            <button class="btn btn-default" type="button" onclick="removeRow(this)"><?php echo $remove_btn_label;?></button>
            <div class="margin-10b"></div>
        </div>
        <?php } ?>
        <?php } ?>
        <div class="row col-sm-12 row_insert_item item_template hidden">
            <div class="col-xs-8"><input type="text" class="form-control" name="<?php echo $input_name;?>" value="<?php echo $input_value;?>"/></div>
            <button class="btn btn-default" type="button" onclick="removeRow(this)"><?php echo $remove_btn_label;?></button>
            <div class="margin-10b"></div>
        </div>
        <div class="row col-sm-12 row_insert_item">
            <div class="col-xs-8"><input type="text" class="form-control col-sm-10" name="<?php echo $input_name;?>" value="<?php echo $input_value;?>"/></div>
        </div>
        <div class="row margin-10b"></div>
    </div>
    <div class="col-sm-8">
        <div class="row col-sm-2">
            <button class="btn btn-default" type="button" onclick="addRow(this)"><?php echo $add_btn_label;?></button>
        </div>
    </div>
</div>